package com.lo23.data.objinterface;

import com.lo23.data.xml.ObjectFactory;
import com.lo23.data.xml.XMLData;
import com.lo23.data.utils.DataUtils;

public class User {

	protected XMLData.XMLUser _user;
	
	public User() {
		
	}
	
	public User(String uid) {
		_user = (new ObjectFactory()).createXMLDataXMLUser();
		_user.setUID(uid);
	}
	
	public User(XMLData.XMLUser xmluser) {
		_user = xmluser;
	}

	/**
	 * @return the uID
	 */
	public XMLData.XMLUser getXML() {
		return _user;
	}
	
	/**
	 * @return the uID
	 */
	public String getuID() {
		return DataUtils.nullString(_user.getUID());
	}

	/**
	 * @return the login
	 */
	public String getLogin() {
		return DataUtils.nullString(_user.getLogin());
	}

	/**
	 * @param login
	 *            the login to set
	 */
	public void setLogin(String login) {
		_user.setLogin(login);
	}

}
